package org.csmz.class2333;

import java.util.Locale;

public class Example05 {
    public static void main(String[] args){
        String s = "Hello";
        char[] charsArray = s.toCharArray();
        System.out.print("将字符串"+s+"转换为字符数组后的结果：");
        for(int i = 0; i < charsArray.length; i++){
            if(i != charsArray.length-1){
                System.out.print(charsArray[i]+",");
            }else{
                System.out.print(charsArray[i]);
            }
        }
        System.out.println("将int类型数据12转换为String类型，结果为"+String.valueOf(12));
        System.out.println("将字符串"+s+"全部转换为大写之后的结果："+s.toUpperCase());
        System.out.println("将字符串"+s+"全部转换为小写之后的结果："+s.toLowerCase());
    }

}
